/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Main;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 *
 * @author root
 */
public class Inbox733 {
    public static void insert(Connection cnx, String corto, String numero, String texto) throws SQLException{
        
        StringBuilder sb = new StringBuilder();
        sb.append("INSERT INTO APPS.INBOX_SMSC_733 (NUMERO_CORTO, TELEFONO, TEXTO)");
        sb.append("     VALUES(?, ?, ?)");
        
        PreparedStatement ps = cnx.prepareStatement(sb.toString());
        ps.setString(1, corto);
        ps.setString(2, numero);
        ps.setString(3, texto);
        
        ps.executeUpdate();
        
        
    }
}
